<template>
	<view>
		<uni-navbar :title="'缴费记录'"></uni-navbar>

		<view class="block">
			<view class="b-1">
				<view>南京儿牙</view>
				<view>折扣价1880元</view>
			</view>
			<view class="b-b-1" v-for="(item,index) in 3" :key="index">
				<view class="b-2">
					创建时间：2022-08-20 10:44
				</view>
				<view class="b-2">
					缴费类型：线上支付
				</view>
				<view class="b-2">
					缴费方式：微信
				</view>
				<view class="b-3">
					<text class="text1">缴费金额：已确认500元</text>
					<view>
						重新录入
					</view>
				</view>
			</view>
		</view>
		<view style="padding-bottom: 120rpx;"></view>

		<!-- 最底部 -->
		<view class="bottom">
			<view class="bot-1" @click="show = true">
				<image src="../../../static/application/xuanke/quxiao.png"></image>
				<view class="text">取消订单</view>
			</view>
			<view class="bot-1" @click="$u.route('/pages/applications/applyForRefund/applyForRefund')">
				<image src="../../../static/application/xuanke/-tuike.png"></image>
				<view class="text1">申请退费</view>
			</view>
			<view class="bot-1" @click="$u.route('/pages/applications/change_course/change_course')">
				<image src="../../../static/application/xuanke/-huanke.png"></image>
				<view class="text1">申请换课</view>
			</view>
			<view class="bot-1" @click="$u.route('/pages/applications/supplementary_payment/supplementary_payment')">
				<image src="../../../static/application/xuanke/bujiao_select.png"></image>
				<view class="text1">补款缴费</view>
			</view>
		</view>

		<!-- 取消订单 -->
		<u-popup v-model="show" mode="center" :width="690" border-radius="14">
			<view class="pop-block">
				<view class="p-1">
					请选择您要取消的订单
				</view>
				<view class="p-2">
					<view class="p-2-left">
						<view>创建时间：2022-08-20 10:44</view>
						<view>缴费类型：线上支付</view>
						<view>缴费金额：<text>待支付1002元</text></view>
					</view>
					<view class="p-2-right">
						<image src="../../../static/application/xuanke/checked.png" mode=""></image>
					</view>
				</view>
				<view class="p-3">
					<view>取消</view>
					<view>确定</view>
				</view>
			</view>
		</u-popup>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				show: false
			}
		},
		methods: {

		}
	}
</script>

<style lang="scss" scoped>
	.block {
		width: 750rpx;
		background: #FFFFFF;
		padding: 20rpx 30rpx;
		margin-top: 20rpx;

		.b-1 {
			display: flex;
			justify-content: space-between;
			font-family: Source Han Sans SC;
			padding-bottom: 14rpx;

			view:nth-child(1) {
				font-size: 30rpx;
				font-weight: 600;
				color: #4D4D4D;
			}

			view:nth-child(2) {
				font-size: 22rpx;
				color: #999999;
				line-height: 40rpx;
				text-align: center;
			}
		}

		.b-b-1 {
			border-top: 1rpx solid #e5e5e5;
			padding: 10rpx 0;

			.b-2 {
				font-size: 24rpx;
				font-family: Source Han Sans SC;
				font-weight: 400;
				color: #999999;
				line-height: 60rpx;
			}

			.b-3 {
				display: flex;
				justify-content: space-between;
				padding: 10rpx 0;

				.text {
					font-size: 24rpx;
					color: #999;
					line-height: 40rpx;
				}

				.text1 {
					font-size: 24rpx;
					color: #E0303B;
					line-height: 40rpx;
				}

				view {
					width: 115rpx;
					height: 40rpx;
					background: #FF7C2E;
					font-size: 22rpx;
					font-family: Source Han Sans SC;
					font-weight: 400;
					color: #FFFFFF;
					line-height: 40rpx;
					text-align: center;
				}
			}
		}

	}

	.bottom {
		width: 100%;
		height: 110rpx;
		background-color: #fff;
		position: fixed;
		bottom: 0;
		padding: 10rpx;
		display: flex;
		justify-content: space-around;

		.bot-1 {
			width: 150rpx;
			text-align: center;
			font-size: 24rpx;
			font-family: Source Han Sans SC;
			font-weight: 400;

			image {
				width: 50rpx;
				height: 50rpx;
			}

			.text {
				color: #999999;
			}

			.text1 {
				color: #4D4D4D;
			}
		}
	}
	
	.pop-block{
		padding: 30rpx 40rpx;
		font-family: Source Han Sans SC;
		font-weight: 400;
		.p-1{
			font-size: 26rpx;
			color: #4C4C4C;
			line-height: 60rpx;
		}
		.p-2{
			display: flex;
			justify-content: space-between;
			line-height: 50rpx;
			.p-2-left{
				font-size: 22rpx;
				font-family: Source Han Sans SC;
				font-weight: 400;
				color: #999999;
			}
			.p-2-right{
				padding: 30rpx;
				image{
					width: 54rpx;
					height: 54rpx;
				}
			}
		}
		
		.p-3{
			display: flex;
			justify-content: space-around;
			font-size: 30rpx;
			font-family: Source Han Sans SC;
			font-weight: 400;
			text-align: center;
			line-height: 65rpx;
			color: #FFFFFF;
			padding: 20rpx 0;
			view:nth-child(1){
				width: 197rpx;
				height: 65rpx;
				background: #B3B3B3;
				border-radius: 8rpx;
			}
			view:nth-child(2){
				width: 197rpx;
				height: 65rpx;
				background: #0590FE;
				border-radius: 8rpx;
			}
		}
	}
</style>
